﻿/*
 * Common
 */

html, body, #application {
    height: 100%;
}

.cq-date .cq-none {
    color: #CCCCCC;
}

.cq-button {
    color: #666666;

    display: block;
    background-color: #ffffff;
    
    border: 1px solid #d9d9d9;

    padding: 7px;

    border-radius: 2px;
	-moz-border-radius: 2px;
	-ms-border-radius: 2px;
	-webkit-border-radius: 2px;

    font-size: 13px;
    font-weight: bold;

    text-decoration: none;

    margin-bottom: 10px;

    -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

.cq-button .cq-icon {
    font-size: 14px;
    margin: 0 5px;
    float: left;
}

.cq-button:hover {
    text-decoration: none;
    border-color: #bbbbbb;
    color: #666666;
}

.cq-button:active {
    background: #d9d9d9;
    color: #262626;
    text-decoration: none;
}

.cq-button:focus {
    text-decoration: none;
}

.cq-button.disabled,
.cq-button.disabled:hover {
    background: #e9e9e9;
}

    .cq-button.cq-main-button {
        background-color: #2bad3b;
        color: #FFFFFF;
        border-color: #2d9b3a;
        text-shadow: 1px 1px #1e8c2c;
    }

        .cq-button.cq-main-button:hover {
            background-color: #2d9b3a;
            color: #EFEFEF;
            box-shadow: none;
        }

        .cq-button.cq-main-button:active {
            background-color: #2bad3b;
            box-shadow: inset 1px 1px 1px rgba(30, 140, 44, 0.5);
        }

.effects-shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/*
 * Dialogs
 */

.cq-app-overlay {
    position: absolute;
    top: 50px;
    bottom: 30px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    opacity: 0.5;
    z-index: 1000;
}

.cq-app-dialog {
    position: absolute;
    right: 0;
    left: 0;
    top: 50px;
    bottom: 30px;
    z-index: 2000;
}

    .cq-app-dialog:before {
        content: '';
        height: 50%;
        display: block;
    }

.cq-dialog-container {
    position: relative;
    border: 1px solid #666666;
    background: #FFFFFF;
    height: 400px;
    width: 700px;
    margin-top: -200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 10px #CCCCCC;
}

@media (max-width: 768px) {
    .cq-app-overlay {
        opacity: 0.8;
    }

    .cq-app-dialog {
        left: 20px;
        right: 20px;
    }

    .cq-dialog-container {
        width: 100%;
        height: 500px;
        margin-top: -250px;
    }
}

@media (max-height: 620px) {
    .cq-app-dialog {
        top: 70px;
        bottom: 50px;
    }

        .cq-app-dialog:before {
            display: none;
        }

    .cq-dialog-container {
        height: 100%;
        margin-top: 0;
    }
}

/*
.cq-app-dialog {
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 20px;
    right: 20px;
    z-index: 2000;
}

.cq-dialog-container {
    border: 1px solid #666666;
    background: #FFFFFF;

    width: 100%;
    height: 100%;
}*/

/*
@media (min-height: 600px) {
    .cq-app-dialog {
        top: 0;
        bottom: 0;
    }

    .cq-app-dialog:before {
        content: '';
        height: 50%;
        display: block;
    }

    .cq-dialog-container {
        position: relative;
        height: 400px;
        margin-top: -200px;
    }
}

@media (min-width: 800px) {
    .cq-app-dialog {
        right: 0;
        left: 0;
    }

    .cq-dialog-container {
        position: relative;
        width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}*/

.cq-dialog-header {
    background: #666666;
    color: #FFFFFF;
}

.cq-dialog-header h2 {
    padding: 0 15px;
    height: 38px;
    line-height: 38px;
    margin: 0;
    font-size: 20px;
    font-weight: normal;
}

.cq-dialog-footer {
    overflow: hidden;
    background: #F4F4F4;
    border-top: 1px solid #DDDDDD;
    padding: 10px 15px;

    position: absolute;
    bottom: 1px;
    left: 1px;
    right: 1px;
}

    .cq-dialog-footer .cq-button {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        width: 70px;
    }

.cq-dialog-content {
    position: absolute;
    top: 39px;
    bottom: 55px;
    left: 1px;
    right: 1px;
    overflow: auto;

    padding: 15px;
}

.cq-form input,
.cq-form select {
    border-radius: 0 !important;
}

    .cq-form input:focus,
    .cq-form select:focus {
        border-color: #999999;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    }

.cq-form .control-label {
    text-align: left;
}

.cq-form .form-group.last {
    margin-bottom: 0;
}

.cq-form .cq-error-control,
.cq-form .cq-error-control:focus {
    border-color: #cb4437;
    box-shadow: inset 0 1px 5px rgba(203, 68, 55, .2);
}

.cq-form-separator {
    margin-bottom: 15px;
    border-bottom: 1px solid #EFEFEF;
}

.cq-field-description {
    font-size: 12px;
    color: #CCCCCC;
    margin: 5px 0 0 0;
}

.cq-field-description a {
    color: #CCCCCC;
    text-decoration: underline;
}

.cq-field-description a:hover {
    text-decoration: none;
}

.cq-field-description:hover,
.cq-field-description:hover a,
.cq-form input.cq-error-control ~ .cq-field-description,
.cq-form input.cq-error-control ~ .cq-field-description a,
.cq-form input:focus ~ .cq-field-description,
.cq-form input:focus ~ .cq-field-description a {
    color: #666666;
}

.cq-validator {
    padding: 0;
    margin: 0;
}

.cq-validator, .cq-validator li {
    list-style-type: none;
    list-style-image: none;
}

.cq-validator li {
    font-size: 12px;
    color: #FFFFFF;
    background: #cb4437;
    padding: 2px 10px;
}

/* Scheduler status */

.cq-scheduler-status {
}

.empty,
.ready,
.started,
.shutdown
{
	float:left;
	height:10px;
	width:10px;
    margin-top: 18px;

    transition: background 1s;

	border-radius:50%;
	-moz-border-radius:50%;
	-ms-border-radius:50%;
	-webkit-border-radius:50%;
}

.empty 
{
	background: #ffffff;
}

.ready 
{
	background: #E5D45B;
}

.started 
{
	background: #38C049;
}

.shutdown
{
	background: #ffffff;
}

/* Activity status */

.cq-activity-status {
    float:left;
    margin-right: 5px;
}

.cq-activity-status .cq-activity-status-primary,
.cq-activity-status .cq-activity-status-secondary {
    float:left;
	height:10px;
	width:10px;

	border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	-webkit-border-radius: 5px;

    transition: background 1s, width 1s, border-radius 1s;
}

.cq-activity-status .cq-activity-status-secondary {
    width: 0;
}

.cq-activity-status.active .cq-activity-status-primary {
    background: #38C049;
}

.cq-activity-status.paused .cq-activity-status-primary {
    background: #E5D45B;
}

.cq-activity-status.complete .cq-activity-status-primary {
    background: #CCCCCC;
}

.cq-activity-status.mixed .cq-activity-status-secondary {
    display: block;
}

.cq-activity-status.mixed .cq-activity-status-primary {
    width: 5px;
    background: #38C049;

    border-radius: 5px 0 0 5px;
	-moz-border-radius: 5px 0 0 5px;
	-ms-border-radius: 5px 0 0 5px;
	-webkit-border-radius: 5px 0 0 5px;
}

.cq-activity-status.mixed .cq-activity-status-secondary {
    width: 5px;
    background: #E5D45B;

    border-radius: 0 5px 5px 0;
	-moz-border-radius: 0 5px 5px 0;
	-ms-border-radius: 0 5px 5px 0;
	-webkit-border-radius: 0 5px 5px 0;
}

/* Activity Action Buttons */

.actions {
    float: right;
}

.cq-actions-toggle {
    font-size: 14px;
    display: block;
    float: right;
    width: 30px;
    text-align: center;
    border-left: 1px solid;
}

.cq-actions-toggle .caret{
    margin-left: 0;
}

.cq-job-group-header .cq-actions-toggle {
    color: #CCCCCC;
    border-color: #444444;
    height: 38px;
    line-height: 38px;
}

.cq-job-group-header .cq-actions-toggle:HOVER {
    color: #FFFFFF;
    background: #444444;
}

.cq-job-header .cq-actions-toggle {
    color: #666666;
    border-color: #CCCCCC;
    height: 33px;
    line-height: 33px;
}

.cq-job-header .cq-actions-toggle:HOVER {
    color: #333333;
    background: #CCCCCC;
}

.cq-triggers .cq-actions-toggle {
    color: #666666;
    border-color: #CCCCCC;
    height: 27px;
    line-height: 27px;
}

.cq-triggers .cq-actions-toggle:HOVER {
    color: #333333;
    background: #DDDDDD;
}

.actions .dropdown-menu {
    min-width: 170px;
}

.actions ul li a span {
    float: left;
    width: 24px;
    text-align: center;
    color: #666666;
    font-size: 10px;
    line-height: 21px;
}

.actions ul li a {
    padding-left: 29px; 
}

.actions ul li.cq-with-icon a {
    padding-left: 5px; 
}

.actions ul li.disabled a, 
.actions ul li.disabled a:HOVER, 
.actions ul li.disabled a:FOCUS, 
.actions ul li.disabled a span {
    color: #CCCCCC;
}

/* Data values */

span.string
{
	color: #A31515;
}

span.boolean
{
	color: #0000FF;
}

span.runtimetype
{
	background: url("?path=Images.classType.png") no-repeat scroll 0 0 #FFFFFF;
	color: #2B91AF;
	height: 40px;
	padding-bottom: 2px;
	padding-left: 20px;
	padding-top: 2px;
}

/*
 * Main Header
 */

.cq-main-header {
    height: 50px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #666666;
    color: #FFFFFF;
}

.cq-main-header-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid #333333;
}

.cq-header-item
{
    height: 48px;
}

.cq-scheduler-name {
    margin: 0;
    padding: 0 0 0 20px;
    font-size: 24px;
    font-weight: normal;
    line-height: 48px;
}

.cq-main-header .cq-leave-link {
    float: right;
    color: #EEEEEE;
    line-height: 48px;
}

.cq-scheduler-properties {
    background: #f8f8f8;
    padding: 20px 0 0;
    border-bottom: 1px solid #CCCCCC;
}

.cq-info-table {
    border-left: 1px solid #cccccc;
    border-top: 1px solid #cccccc;
    background: #e9e9e9;
    width: 100%;
    margin-bottom: 20px;
}

.cq-info-table thead tr th {
    border-right: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    background: #e9e9e9;
}

.cq-info-table th {
    border-bottom: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    background: #f8f8f8;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    text-align: left;
}

.cq-info-table tr td {
    border-bottom: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    padding: 3px 10px;
    font-size: 12px;
    background: #FFFFFF;
}

/*
 * Main Header -> Busy Indicator
 */

.cq-busy {
    font-size: 11px;
    margin-top: 3px;
}

.cq-busy-image,
.cq-current-command {
    text-align: center;
}

/*
 * Main Container
 */

.cq-main-content {
    position: absolute;
    top: 50px;
    bottom: 30px;
    left: 0;
    right: 0;
    overflow: auto;
}

/*
 * Job Group
 */

.cq-job-group-header {
    background: #666666;
    color: #FFFFFF;
    padding-left: 10px;
}

.cq-job-group-header-title {
    font-size: 20px;
    font-weight: normal;
    padding: 0;
    height: 38px;
    line-height: 38px;
}

.cq-job-group-header .cq-activity-status {
    margin-top: 12px;    
}

/*
 * Job 
 */

.cq-job {
    border-top: 1px solid #CCCCCC;
    border-left: 1px solid #CCCCCC;
    margin-bottom: 15px;
}

.cq-job-header {
    border-bottom: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    background: #e9e9e9;
    padding-left: 10px;
}

.cq-job-header .cq-activity-status {
    margin-top: 10px;    
}

.cq-job-header-title,
.cq-job-hide-details {
	line-height: 33px;
	height: 33px;
}

.cq-job-header-title {
    font-size: 18px;
    padding: 0;
    font-weight: normal;
    margin: 0;
    color: #666666;
	float: left;
}

.cq-job-header-title:hover {
    color: #666666;
}

.cq-job-hide-details {
	float: left;
	margin-left: 5px;
	color: #cccccc;	
}

.cq-job-hide-details:hover {
	color: #666666;
	text-decoration: underline;
}

/*
 * Job Details
 */

.cq-job-details {
    border-bottom: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
}

.cq-job-details-panel {
    margin: 10px;
}

.cq-job-details-panel-title {
    font-size: 12px;
    font-weight: bold;
    margin: 10px 10px 0;
    border-bottom: 1px solid #CCCCCC;
    padding: 0;
}

.cq-job-details-panel TABLE {
    width: 100%;
    font-size: 12px;
}

.cq-job-details-panel TABLE TR TH,
.cq-job-details-panel TABLE TR TD {
    border-bottom: 1px solid #DDDDDD;
    padding: 3px;
    text-align: left;
}

.cq-job-details-panel TABLE THEAD TR TH,
.cq-job-details-panel TABLE THEAD TR TD {
    border-bottom: 1px solid #CCCCCC;
}

/*
 * Trigger data table
 */

.cq-triggers {
    width: 100%;
}

.cq-triggers thead th {
    border-bottom: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    
    background: #f8f8f8;
    
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    text-align: left;
}

.cq-triggers tbody tr td {
    border-bottom: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    padding: 3px 10px;
    font-size: 12px;
}

.cq-triggers .cq-activity-status {
    margin-top: 4px;    
}

.cq-triggers tbody tr td.cq-pre-actions, 
.cq-triggers thead tr th.cq-pre-actions {
    border-right: none;
}

.cq-triggers tbody tr td.cq-trigger-actions {
    padding: 0;
    height: 27px;
    border-left: none;
}

/*
 * Main footer
 */

.cq-main-footer {
    height: 30px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.cq-main-footer .cq-footer-wrapper {
    border-top: 1px solid #CCCCCC;
    padding-top: 5px;
    color: #666666;
    font-size: 12px;
}

.cq-main-footer .cq-version {
	font-weight: bold;
}

.cq-version-container {
	float: left;
	margin-right: 20px;
}

/*
 * Error Popup
 */

.cq-error-dialog {
	position: absolute;
    top: 50px;
    bottom: 30px;
    left: 0;
    right: 0;
    overflow: auto;
	z-index: 3000;
	background: #ffffff;
	background: rgba(256, 256, 256, 0.5);
}

.cq-error-dialog-body {
	margin: 40px 20px 0 20px;
	border: 1px solid #666666;
	box-shadow: 1px 1px 2px #CCCCCC;
	background: #FFFFFF;
}

.cq-error-message {
	border-bottom: 1px solid #666666;
	padding: 20px;
	color: #cb4437;
	font-size: 20px;
}

.cq-error-dialog-toolbar {
	padding: 10px 20px;
	background: #f8f8f8;
}

.cq-error-dialog-toolbar .cq-button {
	margin: 0;
}